<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<xsl:apply-templates select="sql" />
	</xsl:template>


	<xsl:template match="sql">
		select
		<xsl:value-of select="//sql/selectClause" />
		from
		<xsl:value-of select="//sql/formClause" />
		where
		<xsl:for-each select="//sql/whereClause/condition">
			<xsl:value-of select="." />
		</xsl:for-each>
		group by
		<xsl:value-of select="//sql/groupByClause" />
		order by
		<xsl:value-of select="//sql/orderByClause" />


	</xsl:template>


</xsl:stylesheet>